package com.qf.mapper;

import com.qf.pojo.Book;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TestBookMapper {
    List<Book> findList(@Param("bookName") String bookName, @Param("bookVersion") String bookVersion, @Param("bookType") String bookType, @Param("page") int page, @Param("limit") int limit);

    Book findOne(int id);

    int add(int courseId,int gradeId, String bookName, String bookVersion, String bookType, String bookPublish, String bookPic, String bookContent);

    int deleteByid(Integer id);

    int updateone(@Param("bookId") Integer bookId,@Param("courseId") Integer courseId,@Param("gradeId") Integer gradeId,@Param("bookName") String bookName, @Param("bookVersion")String bookVersion,@Param("bookType") String bookType,@Param("bookPublish") String bookPublish, @Param("bookPic")String bookPic, @Param("bookContent")String bookContent);
}

